import {
    createApp
} from 'vue'
import App from './App.vue';
import router from './router/index';
import store from './store/index';
import {
    Button,
    NavBar,
    Tabbar,
    TabbarItem,
    Toast,
    Form,
    Field,
    CellGroup,
    Dialog
} from 'vant';

const app = createApp(App);
app.use(router); //路由加载一定要在挂载app前面
app.use(store);
app.mount('#app');

app.use(Button).use(NavBar).use(Tabbar).use(TabbarItem).use(Toast).use(Form).use(Field)
    .use(CellGroup).use(Dialog);